package com.asiainfo.work.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * 基础的返回编码和说明
 *
 * @author: bf
 * @date: 2021/1/5-10:20
 */
@Getter
@AllArgsConstructor
public enum BaseResultCode implements ErrorResultCode {
    SUCCESS("200", "操作成功"),

    FAILURE("400", "业务异常"),

    UN_AUTHORIZED("401", "未授权的请求"),

    NOT_FOUND("404", "请求的接口不存在"),

    MSG_NOT_READABLE("400", "请求参数类型不匹配"),

    METHOD_NOT_SUPPORTED("405", "请求的方法不支持"),

    MEDIA_TYPE_NOT_SUPPORTED("415", "请求的类型不支持"),

    REQ_REJECT("403", "请求被拒绝"),

    INTERNAL_SERVER_ERROR("500", "内部服务器错误"),

    PARAM_MISS("400", "缺少请求参数"),

    PARAM_TYPE_ERROR("400", "请求参数类型不匹配"),

    PARAM_BIND_ERROR("400", "请求参数绑定失败"),

    PARAM_VALID_ERROR("400", "请求参数验证失败"),

    REPETITIVE_OPERATION("400", "请勿重复提交"),

    PAGE_SIZE_OVER("400", "每页记录条数超出限制"),
    ;

    final String code;

    final String msg;

}
